package com.zxh.mall.feign;

import com.zxh.mall.common.utils.R;
import com.zxh.mall.vo.LoginVO;
import com.zxh.mall.vo.SocialUser;
import com.zxh.mall.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhengxh
 * @version 1.0
 * @date 2024/5/14 - 05 - 14 - 20:05
 * @description com.zxh.mall.feign
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @RequestMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVO vo);

    @RequestMapping("/member/member/login")
    public R login(@RequestBody LoginVO vo);

    @RequestMapping("/member/member/oauth2/login")
    public R socialLogin(@RequestBody SocialUser vo);
}
